using System;
using Microsoft.Phone.Controls;
using WindowsPhoneMVC.Phone.Interfaces;

namespace WindowsPhoneMVC.Tests.ActionResults.Fakes
{
    public class ViewResultTestViewModel : ViewModelBase, IObscuredAware
    {
        public override void OnActivated()
        {
            WasActivated = true;
            base.OnActivated();
        }

        public override void OnDeactivated()
        {
            WasDeactivated = true;
            base.OnDeactivated();
        }

        public void Unobscured(object sender, EventArgs e)
        {
            WasUnobscured = true;
        }

        public void Obscured(object sender, ObscuredEventArgs e)
        {
            WasObscured = true;
        }

        public bool WasObscured { get; private set; }
        public bool WasUnobscured { get; private set; }
        public bool WasActivated { get; private set; }
        public bool WasDeactivated { get; private set; }
    }
}